<?php
include "conn.php";
// $name="张三";
// $email="123@qq.com";
// $tell="123456789";
// $gender="男";
// $hobby="打游戏";
// $address="北京市";
// $self_introduction="我是一个好孩子";
$name="李四";
$email="456@qq.com";
$tell="123456789";
$gender="女";
$hobby="看电影";
$address="上海市";
$self_introduction="我是一个好孩子";
$add_time=date("Y-m-d H:i:s");
$sql="insert into user_info(name,email,tell,gender,hobby,address,self_introduction,add_time) 
        values('$name','$email','$tell','$gender','$hobby','$address','$self_introduction','$add_time')";
$resu=mysqli_query($link,$sql);
if($resu){
    echo "插入数据成功";
}else{
    echo "插入数据失败".mysqli_error($link);
}